:root {
  --primary-color: #4a154b;
  --secondary-color: #5a316a;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-color: #e5e5e5;
  --max-width: 1200px;
  --header-height: 110px;
  --footer-height: 200px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea {
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* 响应式断点 */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

/* 渐入动画样式 */
.fade-element {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

/* 默认渐入效果 */
.fade-element:not(.fade-from-left):not(.fade-from-right):not(.fade-from-up):not(.fade-from-down):not(.fade-scale) {
  transform: translateY(20px);
}

/* 不同方向的渐入效果 */
.fade-from-left {
  transform: translateX(-30px);
}

.fade-from-right {
  transform: translateX(30px);
}

.fade-from-up {
  transform: translateY(-30px);
}

.fade-from-down {
  transform: translateY(30px);
}

.fade-scale {
  transform: scale(0.9);
}

/* 可见状态 */
.fade-in-visible {
  opacity: 1 !important;
  transform: none !important;
} 